#pragma once
#include<iostream>
#include<string.h>
#include<assert.h>
#include<vector>

#include"vector.h"
using namespace std;

void test1()
{

	Vect::vector<vector<int>> vv;
	vector<int> v(4, 1);
	vv.push_back(v);
	vv.push_back(v);
	vv.push_back(v);
	vv.push_back(v);
	vv.push_back(v);

	for (size_t i = 0; i < vv.size(); i++)
	{
		for (size_t j = 0; j < v.size(); j++)
		{
			cout << v[j] << " ";
		}
		cout << endl;
	}


	cout << v.capacity() << endl;


	/*string s1 = "aaa";
	Vect::vector<int> v1(s1.begin(), s1.end());
	for (auto e : v1)
	{
		cout << e << " ";
	}
	cout << endl;

	cout << v1.capacity() << endl;*/

	/*Vect::vector<int>:: iterator it = find(v.begin(), v.end(), 4);

	if (it != v.end())
	{
		v.erase(it);
	}*/

	/*if (it != v.end())
{
	v.insert(it, 52);
}*/
	//Vect::vector<int> v1;
	//v1.push_back(10);
	//v1.push_back(20);
	//v1.push_back(30);
	//v1.push_back(40);

	//for (auto e : v1)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;

	//cout << v.capacity() << endl;



	//v.swap(v);

	//for (auto e : v1)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;

	//cout << v.capacity() << endl;

	//v.clear();

	//for (auto e : v)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
	//cout << v.capacity() << endl;


	//v.pop_back();
	//v.pop_back();
	//v.pop_back();
	//v.pop_back();

	//for (auto e : v)
	//{
	//	cout << e << " ";
	//}
	//cout << endl;
	//cout << v.capacity() << endl;


	/*v.resize(10, 100);
	for (auto e : v)
	{
		cout << e << " ";
	}

	cout << v.capacity() << endl;*/
}

int main()
{
	test1();

	return 0;
}